package com.guinea.core;

import java.util.Date;

import javax.servlet.ServletException;

import org.apache.commons.beanutils.ConvertUtils;
import org.apache.struts.action.ActionServlet;
import org.apache.struts.action.PlugIn;
import org.apache.struts.config.ModuleConfig;

import com.guinea.core.web.DateConverter;

public class MyConvertPlugIn implements PlugIn {

	public void destroy() {
		ConvertUtils.deregister(); 
	}

	public void init(ActionServlet arg0, ModuleConfig arg1)
			throws ServletException {
		ConvertUtils.register(new DateConverter(), Date.class); 
	}

}
